<template>
	<view>
		<view class="Loading">
			<text class="text">信息加载中...</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "Loading"
	}
</script>

<style>
	.Loading {
		width: 100%;
		height: 20rem;
		background-color: #eee;
		background-image: linear-gradient(90deg, #eee, #f5f5f5, #eee);
		background-size: 10rem 100%;
		background-repeat: no-repeat;
		border-radius: 1rem;
		line-height: 1;
		animation: progress 1.2s ease-in-out infinite;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	@keyframes progress {
		0% {
			background-position: -10rem, 0;
		}

		100% {
			background-position: calc(10rem + 100%), 0;
		}
	}
	
	.text {
		color: #ccc;
	}
</style>